package com.zzp.service.impl;

import com.zzp.mapper.CategoryMapper;
import com.zzp.pojo.Category;
import com.zzp.service.CategoryService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {


            private CategoryMapper categoryMapper;

    public CategoryServiceImpl(CategoryMapper categoryMapper) {
        this.categoryMapper = categoryMapper;
    }
    @Override
    public List<Category> findAll(Integer parentId) {
        return categoryMapper.findAll(parentId);
    }
}
